package com.LittleHan.crm.exceptionHandler;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@ControllerAdvice
public class ClueRemarkRelevancyExceptionHandler {
    @ExceptionHandler
    @ResponseBody
    public Map<String,String> clueRemarkRelevancyException(Exception e){
        Map<String,String> map=new HashMap<>();
        map.put("yesOrNo","no");
        return map;
    }
}
